package com.telit.firecommand.controller;//package com.telit.firecommand.controller;
//
//import com.telit.dto.CommunicateRecordDTO;
//import com.telit.entity.CommCommunicateRecord;
//import com.telit.entity.DataReturn;
//import com.telit.service.impl.CommunicateRecordService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//
//
///**
// * @Auther amy
// * @Describe 融合通信记录管理
// */
//@RestController
//@RequestMapping("/communicate-record")
//@Api(tags = "融合通信记录管理", description = "/communicate-record")
//public class CommunicationController {
//
//    @Autowired
//    private CommunicateRecordService communicateRecordService;
//
//    @GetMapping(value = "/list/{fireId}", produces = "application/json;charset=UTF-8")
//    @ApiOperation("灾后管理-融合通信回溯")
//    public DataReturn list(@PathVariable("fireId") String fireId) {
//        return DataReturn.ok(communicateRecordService.listByFireId(fireId));
//    }
//
//    @PostMapping(value = "/add", produces = "application/json;charset=UTF-8")
//    @ApiOperation("新增融合通信记录")
//    public DataReturn add(@RequestBody @Validated CommCommunicateRecord commCommunicateRecord) {
//        return DataReturn.ok(communicateRecordService.add(commCommunicateRecord));
//    }
//
//    @PostMapping(value = "/update/{id}", produces = "application/json;charset=UTF-8")
//    @ApiOperation("更新融合通信记录")
//    public DataReturn update(@PathVariable("id") Long id, @RequestBody CommunicateRecordDTO communicateRecordDTO) {
//        communicateRecordDTO.setId(id);
//        return DataReturn.ok(communicateRecordService.update(communicateRecordDTO));
//    }
//
//    @GetMapping(value = "/latest/{fireId}", produces = "application/json;charset=UTF-8")
//    @ApiOperation("查询火情最新的通讯记录")
//    public DataReturn selectLatestRecord(@PathVariable("fireId") String fireId) {
//        return DataReturn.ok(communicateRecordService.latestRecordByFireId(fireId));
//    }
//
//    @PutMapping(value = "/addMember/{id}", produces = "application/json;charset=UTF-8")
//    @ApiOperation("用户添加进会议,记录参会人员,web端需要传参会人数")
//    public DataReturn addMember(@PathVariable("id") Long id, @RequestBody CommunicateRecordDTO communicateRecordDTO) {
//        communicateRecordDTO.setId(id);
//        return DataReturn.ok(communicateRecordService.addMember(communicateRecordDTO));
//    }
//
//}
